Edit Task: NonRecurringDiscreteWindows
Description
The NonRecurringDiscreteWindows attribute under EditTask defines a user-set amount of discrete windows for the task. This attribute may only be used if the RecurringType attribute is set to SingleInstance. Any previous discrete windows are deleted.
Parameters
Parameter | Description |
---|---|
Start | The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
Stop | The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
Comment | A string of text of the desired comment for the discrete window. Empty string is allowed. |
Examples
Set a single non-recurring window during maintenance.
PATCH api/task/TaskA
Body:
{
"NonRecurringDiscreteWindows" : {
"Start" : "2017/11/21_12:00:00",
"Stop" : "2017/11/22_00:00:00",
"Comment" : "Spacecraft Maintenance" }
}